package com.net.xpay.core.manager.safePay;

import com.net.common.manager.VersionedManager;
import com.net.xpay.core.domain.safePay.BookAccountChargeOrder;
import com.net.xpay.core.model.BookAccountChargeOrderSearchModel;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;


public interface BookAccountChargeOrderManager extends VersionedManager<Long,BookAccountChargeOrder> {
    List<Long> listNeedUpdateOrder();

    BookAccountChargeOrder findByImportBizNo(Long userId, String importBizNo);

    List<BookAccountChargeOrder> search(@Param("searchModel") BookAccountChargeOrderSearchModel searchModel);

    long searchCount(@Param("searchModel") BookAccountChargeOrderSearchModel searchModel);

    //统计成功转账金额
    BigDecimal sumSuccessTransAmount(Long userId, LocalDateTime minEndTime, LocalDateTime maxEndTime);

    List<BookAccountChargeOrder> list(BookAccountChargeOrderSearchModel searchModel);

}
